# uncompyle6 version 3.9.2
# Python bytecode version base 3.6 (3379)
# Decompiled from: Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)]
# Embedded file name: modules\common\Path.py
import os, sys

class PATH:

    @property
    def project_folder(self):
        if sys.argv[0].endswith(".py") or sys.argv[0].endswith(".pyc"):
            modules_folder = os.path.dirname(os.path.abspath(__file__))
            modules_folder = os.path.dirname(modules_folder)
            return os.path.dirname(modules_folder)
        else:
            return os.path.dirname(os.path.abspath(sys.argv[0]))

    @property
    def log_folder(self):
        return os.path.join(self.project_folder, "logs")

    @property
    def result_folder(self):
        return os.path.join(self.project_folder, "testResult")

    @property
    def tools_folder(self):
        return os.path.join(self.project_folder, "tools")

    @property
    def config_folder(self):
        return os.path.join(self.project_folder, "config")


PathManager = PATH()
